#ifndef CERCLE_H
#define	CERCLE_H

#include "Vector2D.h"

const float PI = 3.1415926535897f;

class Circle2 
{
public :
	Circle2(float x, float y, float radius);
	Circle2(const Vector2D& center, float radius);
	bool Contains(float x, float y) const;
	bool Contains(const Vector2D& point) const;
	float GetX() const;
	float GetY()const;
	Vector2D GetCenter() const { return center; };
	float GetRadiusSq()const;
	float GetRadius()const;
	void SetPosition(const Vector2D& vect);
	void SetPosition(float x, float y);
	void MoveBy(const Vector2D& vect);
	void MoveBy(float x, float y);
	bool Circle2::CollidesWith(const Circle2& circ) const;

private :
	float x, y, radius;
	Vector2D center;
};

#endif